home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / parasite-x.swf / scripts / frame_22 / PlaceObject3_129_57 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-10-17  |  691b  |  35 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.time1 > 1100 + _root.leveltime)
  3.    {
  4.       _root.fadeout.play();
  5.       if(_root.gamepaused == 0)
  6.       {
  7.          _root.fadeout.play();
  8.       }
  9.       else
  10.       {
  11.          _root.fadeout.stop();
  12.       }
  13.    }
  14.    if(_root.firerate > 5000)
  15.    {
  16.       _root.firerate = 5000;
  17.    }
  18.    if(_root.gamepaused == 0)
  19.    {
  20.       _root.time1 += 1;
  21.       _root.houres += 1;
  22.    }
  23.    if(_root.lives <= 0)
  24.    {
  25.       _root.gotoAndPlay(29);
  26.    }
  27.    follow(_root.bad._x,_root.bad._y);
  28.    if(_root.gamepaused == 0)
  29.    {
  30.       _X = _X + xmove;
  31.       _Y = _Y + ymove;
  32.       _rotation = 180 * Math.atan2(ymove,xmove) / 3.141592653589793;
  33.    }
  34. }
  35.